package com.dap.cms.governance.service;

import com.dap.cms.governance.po.CmsManagerPo;
import com.dap.cms.base.IBaseService;
import com.dap.cms.governance.vo.ManagerInfoVo;
import com.dap.dao.model.QueryResult;

/**
 * @description: t_cms_manager表对应的服务接口
 * @author: Fesine
 * @createTime:2018/08/20
 * @update:修改内容
 * @author: Fesine
 * @updateTime:2018/08/20
 */
public interface CmsManagerService extends IBaseService<CmsManagerPo> {

    CmsManagerPo login(String username, String password);

    ManagerInfoVo getManagerInfo(CmsManagerPo cmsManagerPo);

    /**
     * 查询管理人员信息（包含关联组件信息）
     * @param cmsManagerPo
     * @param pageIndex
     * @param pageSize
     * @return
     */
    QueryResult<CmsManagerPo> selectManagerInfos(CmsManagerPo cmsManagerPo, Integer pageIndex, Integer pageSize);

    void deleteManager(CmsManagerPo cmsManagerPo);

    CmsManagerPo selectManagerByComponentId(Integer componentId);
}




